
/**
 * The Class Song 
 * 
 * @author Mathieu Reymond & Jonathan Smet
 * @version 11/05/11
 */
public class Song
{
    private String title;
    private int minutes;
    private int seconds;

    /**
     * Makes a new Song.
     * 
     * @param title The name of the song
     * @param minutes Number of minutes of the song
     * @param seconds Number of seconds of the song
     */
    public Song(String title, int minutes, int seconds)
    {
        this.title = title;
        this.minutes = minutes;
        this.seconds = seconds;
    }
    
    /**
     * Get the title of this song
     * 
     * @return The title of the song
     */
    public String getTitle()
    {
        return title;
    }
    
    /**
     * Get the total duration of the song (in seconds)
     * 
     * @return The total duration of the song (in seconds)
     */
    public int getTime()
    {
        return minutes*60 + seconds;
    }
    
    /**
     * Get the number of minutes of the song
     * 
     * @return The number of minutes of the song
     */
    public int getMinutes()
    {
        return minutes;
    }
    
    /**
     * Get the seconds left
     * 
     * @return The seconds left
     */
    public int getSeconds()
    {
        return seconds;
    }
}
